#ifndef FREEWAYMSG1_H_INCLUDED
#define FREEWAYMSG1_H_INCLUDED
#include <string>
#include <string.h>
class msgStruct1{
public:
    msgStruct1(const char * buf, int l ){
       len = l;
       msgPtr = new char[l];
       memcpy(msgPtr,buf, l);
        cliName = "";
    }


    msgStruct1(const char * buf, int l, std::string client ){
       len = l;
       msgPtr = new char[l];
       memcpy(msgPtr,buf, l);
        cliName = client;
    }


    ~msgStruct1()
    {
        delete msgPtr;
        msgPtr = NULL;

    }
public:
    std::string cliName;
    char * msgPtr;
    int len;
    //bool run;


};


#endif // FREEWAYMSG1_H_INCLUDED
